package io.halo.payment.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.halo.payment.model.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 商户应用APP
 *
 * @author: austin
 * @since: 2023/1/11 13:31
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("halo_payment_mch_app")
public class MchApp extends BaseModel implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 应用ID
     */
    @TableId(value = "app_id", type = IdType.INPUT)
    private String appId;

    /**
     * 应用名称
     */
    private String appName;

    /**
     * 所属商户号
     */
    private String mchNo;

    /**
     * 应用状态: 0停用, 1正常
     */
    private String state;

    /**
     * 应用私钥
     */
    private String appSecret;

    /**
     * 备注
     */
    private String remark;
}
